<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>监督受理</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script type="text/javascript" charset="utf-8"
	src="<c:url value='/KindEditor/kindeditor.js'/>"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#rating").focus();
		$("#materialDate").addClass("Wate").bind("focus", function() {
			WdatePicker({
				skin : 'whyGreen',
				dateFmt : 'yyyy-MM-dd'
			});
		});
		$("#inputForm").validate({
			event : "blur",
			isTip : true
		});
	});

	KE.show({
		id : 'levelContent',
		cssPath : './index.css',
		afterCreate : function(id) {
			KE.event.ctrl(document, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
			KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
		}
	});
	function close() {
		$.window.closeAll();
	}
</script>
</head>
<body>
	<form action="${ctx}/business/application!save.action" method="post"
		id="inputForm" class="yform">
		<div id="caption">
			<h6>填写资料情况</h6>
		</div>
		<input type="hidden" name="id" id="id" value="${id }"> <input
			type="hidden" name="taskid" id="taskid"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" name="taskId" id="taskId"
			value="${(empty taskid)?taskId : taskid}"> <input
			type="hidden" name="projectId" id="projectId" value="${projectId}">
		<input type="hidden" name="status" id="status" value="03">
		<div id="tabs">
			<div id="tabs-2">
				<table width="300" class="noborder">
					<tr class="type-text">
						<td>项目名称</td>
						<td>${projectInfo.projName }</td>
					</tr>
					<tr class="type-text">
						<td>单位名称</td>
						<td><input type="text" name="orgName"
							value='<pt:labels type="org" argument1="${orgId }" single="true"></pt:labels>'
							readonly="readonly" /></td>
					</tr>
					<tr class="type-text">
						<td>资料齐全程度</td>
						<td><pt:code category="3067" name="rating"
								default="${rating }"></pt:code>
					</tr>
					<tr class="type-text">
						<td>资料补全时间</td>
						<td><input type="text" name="materialDate" id="materialDate"
							value="<fmt:formatDate value='${materialDate}' pattern="yyyy-MM-dd" />" />
						</td>
					</tr>
					<tr class="type-text">
						<td>受理编号</td>
						<td><input type="text" name="acceptionCode"
							id="acceptionCode" value="${acceptionCode }" /></td>
					</tr>
					<tr class="type-text">
						<td>资料缺乏情况</td>
						<td><textarea name="levelContent" id="levelContent">${levelContent }</textarea>
						</td>
					</tr>
					<tr class="type-text">
						<td>备注</td>
						<td><textarea name="remark">${remark }</textarea></td>
					</tr>
				</table>
			</div>
			<div>
				<div id="caption">
					<h6>填写拟办意见</h6>
				</div>
				<table width="300" class="noborder">
					<tr class="type-text">
						<td width="145">审核意见</td>
						<td align="left"><textarea name="view" rows="3"></textarea></td>
					</tr>
				</table>
			</div>
			<div>
				<div class="type-button">
					<input type="submit" class="submit" onclick="return isProcess();"
						value="提交" />&nbsp; <input type="button" value="返回" class="reset"
						onclick="window.location.href='${ctx}/business/appl/material!input.action?projectId=${projectId}&fid=${id}&taskId=${taskid}'" />
				<a
				href="javascript:showWindow('查看申请资料','${ctx}/business/appl/petition!input.action?projectId=${projectId}&fid=${id}&decorator=open&confirm=true')">查看申请书</a>
		</div>
			</div>
		</div>
	</form>
</body>
</html>